import {defineStore} from 'pinia'
import {Names} from './store-name'
export const useTestStore = defineStore(Names.TEST,{
	state:()=>{
		return {
			ablum:[
				{
					id:1,
					pic:"https://img0.baidu.com/it/u=374954155,182831265&fm=253&fmt=auto&app=138&f=JPEG?w=960&h=500",
					title:'这是我1',
					content:'你踩踩这是啥啊，是不是憨的'
				},
				{
					id:2,
					pic:"https://img0.baidu.com/it/u=2266815623,3460951831&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500",
					title:'这是你2',
					content:'项目 \'uni-preset-vue-vite-ts \' 编译成功。前端运行日志，请另行在小程序开发工具的控制台查看'
				},
				{
					id:3,
					pic:"https://img0.baidu.com/it/u=374954155,182831265&fm=253&fmt=auto&app=138&f=JPEG?w=960&h=500",
					title:'这是我3',
					content:'你踩踩这是啥啊，是不是憨的'
				},
				{
					id:4,
					pic:"https://img0.baidu.com/it/u=2266815623,3460951831&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500",
					title:'这是你4',
					content:'项目 \'uni-preset-vue-vite-ts \' 编译成功。前端运行日志，请另行在小程序开发工具的控制台查看'
				},
				{
					id:5,
					pic:"https://img0.baidu.com/it/u=374954155,182831265&fm=253&fmt=auto&app=138&f=JPEG?w=960&h=500",
					title:'这是我5',
					content:'你踩踩这是啥啊，是不是憨的'
				},
				{
					id:6,
					pic:"https://img0.baidu.com/it/u=2266815623,3460951831&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500",
					title:'这是你6',
					content:'项目 \'uni-preset-vue-vite-ts \' 编译成功。前端运行日志，请另行在小程序开发工具的控制台查看'
				},
				{
					id:7,
					pic:"https://img0.baidu.com/it/u=374954155,182831265&fm=253&fmt=auto&app=138&f=JPEG?w=960&h=500",
					title:'这是我7',
					content:'你踩踩这是啥啊，是不是憨的'
				},
				{
					id:8,
					pic:"https://img0.baidu.com/it/u=2266815623,3460951831&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500",
					title:'这是你8',
					content:'项目 \'uni-preset-vue-vite-ts \' 编译成功。前端运行日志，请另行在小程序开发工具的控制台查看'
				},
			],
			ablums:[
				{
					id:9,
					pic:"https://img0.baidu.com/it/u=374954155,182831265&fm=253&fmt=auto&app=138&f=JPEG?w=960&h=500",
					title:'这是我9',
					content:'你踩踩这是啥啊，是不是憨的'
				},
				{
					id:10,
					pic:"https://img0.baidu.com/it/u=2266815623,3460951831&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500",
					title:'这是你10',
					content:'项目 \'uni-preset-vue-vite-ts \' 编译成功。前端运行日志，请另行在小程序开发工具的控制台查看'
				},
				{
					id:11,
					pic:"https://img0.baidu.com/it/u=374954155,182831265&fm=253&fmt=auto&app=138&f=JPEG?w=960&h=500",
					title:'这是我11',
					content:'你踩踩这是啥啊，是不是憨的'
				},
				{
					id:12,
					pic:"https://img0.baidu.com/it/u=2266815623,3460951831&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500",
					title:'这是你12',
					content:'项目 \'uni-preset-vue-vite-ts \' 编译成功。前端运行日志，请另行在小程序开发工具的控制台查看'
				}
			],
			item: {}
		}
	},
	
	//computed 修饰一些东西
	getters:{
		getItems(){
			return this.ablum;
		},
		addItems(){
			this.ablum.push(...this.ablums);
			return this.ablum;
		}
	},
	
	// methods 可以同步，异步都可以做，提交state
	actions:{
		
	}
})